package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @Author zhengmf
 * @Date 2019/1/8  15:14
 */
@ApiModel("保存目录参数")
public class SaveCatalogEvt implements Serializable {
    private static final long serialVersionUID = -4928274615163289715L;
    @ApiModelProperty("目录ID")
    private Long catalogId;
    @ApiModelProperty("目录名称")
    @NotBlank
    private String catalogName;
    @ApiModelProperty("上级目录ID")
    private Long parentId;

    public Long getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(Long catalogId) {
        this.catalogId = catalogId;
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "SaveCatalogEvt{" +
            "catalogId=" + catalogId +
            ", catalogName='" + catalogName + '\'' +
            ", parentId=" + parentId +
            '}';
    }
}
